package hl.model;
// Generated 2018-5-23 22:17:46 by Hibernate Tools 4.3.5.Final

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TVenueInfo generated by hbm2java
 */
@Entity
@Table(name = "t_venue_info", catalog = "matcha_gym")
public class TVenueInfo implements java.io.Serializable {

	private Long pkVenueInfo;
	private String name;
	private Date setupDate;
	private String address;
	private Integer area;
	private Date cdatetime;
	private Date mdatetime;
	private Set<TSigning> TSignings = new HashSet<TSigning>(0);
	private Set<TCoach> TCoaches = new HashSet<TCoach>(0);
	private Set<TPlace> TPlaces = new HashSet<TPlace>(0);
	private Set<TStuff> TStuffs = new HashSet<TStuff>(0);
	private Set<TMember> TMembers = new HashSet<TMember>(0);

	public TVenueInfo() {
	}

	public TVenueInfo(String name, Date setupDate, String address, Integer area, Date cdatetime, Date mdatetime, Set<TSigning> TSignings, Set<TCoach> TCoaches, Set<TPlace> TPlaces,
			Set<TStuff> TStuffs, Set<TMember> TMembers) {
		this.name = name;
		this.setupDate = setupDate;
		this.address = address;
		this.area = area;
		this.cdatetime = cdatetime;
		this.mdatetime = mdatetime;
		this.TSignings = TSignings;
		this.TCoaches = TCoaches;
		this.TPlaces = TPlaces;
		this.TStuffs = TStuffs;
		this.TMembers = TMembers;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "PK_VENUE_INFO", unique = true, nullable = false)
	public Long getPkVenueInfo() {
		return this.pkVenueInfo;
	}

	public void setPkVenueInfo(Long pkVenueInfo) {
		this.pkVenueInfo = pkVenueInfo;
	}

	@Column(name = "NAME", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "SETUP_DATE", length = 10)
	public Date getSetupDate() {
		return this.setupDate;
	}

	public void setSetupDate(Date setupDate) {
		this.setupDate = setupDate;
	}

	@Column(name = "ADDRESS", length = 50)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "AREA")
	public Integer getArea() {
		return this.area;
	}

	public void setArea(Integer area) {
		this.area = area;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CDATETIME", length = 19)
	public Date getCdatetime() {
		return this.cdatetime;
	}

	public void setCdatetime(Date cdatetime) {
		this.cdatetime = cdatetime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MDATETIME", length = 19)
	public Date getMdatetime() {
		return this.mdatetime;
	}

	public void setMdatetime(Date mdatetime) {
		this.mdatetime = mdatetime;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "TVenueInfo")
	public Set<TSigning> getTSignings() {
		return this.TSignings;
	}

	public void setTSignings(Set<TSigning> TSignings) {
		this.TSignings = TSignings;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "TVenueInfo")
	public Set<TCoach> getTCoaches() {
		return this.TCoaches;
	}

	public void setTCoaches(Set<TCoach> TCoaches) {
		this.TCoaches = TCoaches;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "TVenueInfo")
	public Set<TPlace> getTPlaces() {
		return this.TPlaces;
	}

	public void setTPlaces(Set<TPlace> TPlaces) {
		this.TPlaces = TPlaces;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "TVenueInfo")
	public Set<TStuff> getTStuffs() {
		return this.TStuffs;
	}

	public void setTStuffs(Set<TStuff> TStuffs) {
		this.TStuffs = TStuffs;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "TVenueInfo")
	public Set<TMember> getTMembers() {
		return this.TMembers;
	}

	public void setTMembers(Set<TMember> TMembers) {
		this.TMembers = TMembers;
	}

}
